package ups.MapParse;

public class Rect {
	public Point	origin;
	public Size 	size;
	
	public Rect( Point origin, Size size ){
		this.origin = origin;
		this.size = size;
	}
	
	public Rect( int x, int y, int width, int height ) {
		origin = new Point( x, y );
		size = 	new Size( width, height );
	}
	
	public int maxX() {
		return origin.x + size.width;
	}
	
	public int maxY() {
		return origin.y + size.height;
	}
	
	public String toString() {
		return "{" + origin.toString() + ", " + size.toString() + "}";
	}
}